package com.zju.DoctorGo.controller;

import com.zju.DoctorGo.service.ManagerService;
import com.zju.DoctorGo.dto.ManagerDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin(origins = "*")
@RestController
@RequestMapping("/users")
public class ManagerController {

    @Autowired
    private ManagerService managerService;

    @PostMapping
    public ResponseEntity<?> getNotices(@RequestBody ManagerDTO filter) {
        boolean if_modified = managerService.updateManagerInfo(filter);
        return ResponseEntity.ok(if_modified);
    }
}